﻿//-----------------------------------------------------------------------
// <copyright file="FCISPlusServerFactory.cs" company="FCIS">
//     Company copyright tag.
// </copyright>
// <author>Ramy Medhat</author>
// <date>24/8/2011</date>
// <reviewer></reviewer>
//-----------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FCISPlus.Server
{
    /// <summary>
    /// FCIS+ Server Communicator Factory.
    /// </summary>
    public static class FCISPlusServerFactory
    {
        /// <summary>
        /// Static instance of the FCIS+ server communicator.
        /// </summary>
        private static FCISPlus.Server.Communicator.IFCISPlusServerCommunicator communicator;

        /// <summary>
        /// Initializes static members of the <see cref="FCISPlusServerFactory"/> class.
        /// </summary>
        static FCISPlusServerFactory()
        {
            communicator = new FCISPlus.Server.Communicator.FCISPlusServerCommunicator();
        }

        /// <summary>
        /// Gets the communicator.
        /// </summary>
        /// <returns>Singleton instance of the communicator.</returns>
        public static FCISPlus.Server.Communicator.IFCISPlusServerCommunicator GetCommunicator()
        {
            return communicator;
        }
    }
}
